package org.formal.system.entity;

import javax.persistence.Column;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.formal.common.base.BaseEntity;


/**
 * @ClassName UserRoleEntity
 * @Description 
 * @author jiangyan
 * @date 2017-11-14 16:32:47
 * @version 1.0 
 */
@Data
@Table(name="sys_user_role")
@EqualsAndHashCode(callSuper = true)
public class UserRoleEntity extends BaseEntity{

	private static final long serialVersionUID = 1L;
	/**
	 * 角色ID
	 */
	@Column(name="ROLE_ID")
	private String roleId;
	/**
	 * 用户ID
	 */
	@Column(name="USER_ID")
	private String userId;
	
	/**
	 * 默认角色
	 * @return
	 */
	@Column(name="IS_DEFAULT")
	private Boolean isDefault;

}